//Author: Zhengwei Pu & Lu Xu
// Term project for ECE59500

//If run this game in an operation system based on Chinese, the buttons of the dialog will show Chinese!
//
//But if in English OS, it also works well!
//
//The language of this game is based on your operation system. 


/*
 * Used to manage the food
 * food is set by the row and col,it means the location
 */
public class FoodManage {
	/*
	 * generate the food，@return the generated Food
         * and the location is pseudo-random
	 */
	public Food generateFood(){
		int row = (int)(Math.random() * Utils.DEFAULT_ROWS);
		int col = (int)(Math.random() * Utils.DEFAULT_COLS);
		return new Food(row,col);
	}
}
